OTP\Handler\Forms\WooCommerceRegistrationForm B

Total Complexity 94
Dependencies 10
Dependents 0
Total lines 632
Lines of code 347
Logical lines of code 172
Comment lines 217
Methods 28
Properties 2

Methods 28

Method Rating Maintainability Complexity Lines of code
processFormFields()
A
48 14 29
handle_form_options()
S
53 5 22
checkIntegrityAndValidateOTP()
S
55 5 20
processFormAndSendOTP()
S
54 5 19
assertUserName()
S
57 5 18
checkIntegrity()
S
56 5 18
routeData()
S
57 5 15
handle_form()
S
54 4 20
assertEmail()
S
59 4 16
mo_add_phone_field()
S
61 4 12
handle_failed_verification()
S
58 3 16
sendAjaxOTPRequest()
S
59 3 14
custom_registration_redirect()
S
61 3 13
mo_add_verification_field()
S
62 3 13
woocommerce_site_registration_errors()
S
61 3 12
assertPassword()
S
63 3 11
miniorange_register_wc_script()
S
57 2 16
get_phone_number_selector()
S
70 3 6
__construct()
S
58 2 15
register_woocommerce_user()
S
70 2 6
checkIfOTPWasSent()
S
67 2 8
assertOTPField()
S
67 2 8
isPhoneVerificationEnabled()
S
75 2 4
handle_post_verification()
S
79 1 3
unset_otp_session_variables()
S
80 1 3
isPhoneNumberAlreadyInUse()
S
69 1 6
redirectToPage()
S
86 1 2
isredirectToPageEnabled()
S
86 1 2